package com.example.software.dao;

import com.example.software.entity.DoctorEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 医生表
 * 
 * @author wxy
 * @email wxy9496099@163.com
 * @date 2024-10-28 10:54:37
 */
@Mapper
public interface DoctorDao extends BaseMapper<DoctorEntity> {

    /**
     * 根据用户名查询医生
     * @param username
     * @return
     */
    @Select("select * from doctor where username = #{username}")
    DoctorEntity getByUsername(String username);


}
